import pygame
import time
import os


pygame.init()
screen = pygame.display.set_mode((800, 600))
clock = pygame.time.Clock()
image = pygame.image.load("init.png")
running = True


def get_new_image():

    return "update.png"


while running:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False
    new_image = get_new_image()
    image = pygame.image.load(new_image)
    screen.blit(image, (0, 0))
    pygame.display.flip()
    clock.tick(30)

pygame.quit()
